#pragma once

#include "ftd2xx.h"

class ftd232
{

FT_HANDLE ftHandle;

DWORD EventMask; 

DWORD EventDWord; 
DWORD TxBytes; 
DWORD RxBytes; 
DWORD BytesReceived; 
DWORD lpdwAmountInRxQueue;
DWORD lpdwAmountInTxQueue; 
DWORD lpdwEventStatus;

public:
HANDLE hEvent; 
char RxBuffer[3000]; 
FT_STATUS ftStatus; 

	ftd232(void);
	~ftd232(void);

long GetBuffer(void);

// Purge Buffer
int Purge(void);
bool not_response(void);
};
